package com.bulletelc.apollopre.module.main.center.invoice.list;

import com.bulletelc.apollopre.entity.InvoiceBean;
import com.bulletelc.apollopre.framework.IPresenter;
import com.bulletelc.apollopre.framework.IView;

import java.util.List;

/**
 * author: lhl
 * date  : 2018/01/29
 * desc  : TODO
 */

public interface InvoiceContract {

    interface View extends IView {
        void onSuccessInvoiceList(List<InvoiceBean> invoiceBeans);
        void onFailInvoiceList(String fail);
        void onErrorInvoiceList(String error);

        void onSuccessDelInvoice();
        void onFailDelInvoice(String fail);
        void onErrorDelInvoice(String error);

        void onSuccessSetDefault();
        void onFailSetDefault(String fail);
        void onErrorSetDefault(String error);
    }

    interface Presenter extends IPresenter<View> {
        void getInvoiceList();

        void delInvoice(int invoiceId ,int position);

        void setDefault(int invoiceId);
    }

}
